using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;

namespace hondaab.portal.pedidos_dir
{
    public partial class listado_pedidos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (sf.cadena(HttpContext.Current.Session["dcliente"]) == "")
            {
                Response.Redirect("../clientes_dir/autentifiquese.aspx?from=main_clientes.aspx");
            }
            else
            {
                if (!Page.IsPostBack)
                {
                    List<pedidos> lista = new List<pedidos>();
                    lista = pedidos.getListpedidosByidclientes(sf.entero(HttpContext.Current.Session["dcliente"]));
                    Repeater1.DataSource = lista;
                    Repeater1.DataBind();
                }
            }
        }
    }
}
